﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime;
namespace VASMide
{
    public class Plugins
    {
        public static void Load(string DLL)
        {
            Assembly assembly = Assembly.LoadFrom(DLL);
            List<Object> Classes = new List<object>();
            
            foreach (Type d in assembly.GetTypes())
            {
                Classes.Add(assembly.CreateInstance(d.Name));
            }
            
            foreach (Object obj in Classes)
            {
                System.Windows.Forms.MessageBox.Show(((Language)obj).ToString());
                
                if (obj is Language)
                {
                    System.Windows.Forms.MessageBox.Show(((Language)obj).name);
                }
            }
            
        }
    }
}
